import type { RouteRecordRaw } from 'vue-router'

export const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('@/views/home/index.vue'),
    name: 'Home',
    meta: {
      title: '首页',
    },
  },
  {
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'Login',
    meta: {
      isAuth: false,
      title: '登录',
    },
  },
  {
    path: '/redirect/:path*',
    component: () => import('@/views/redirect/index.vue'),
    name: 'redirect',
    meta: {
      title: 'redirect',
      keepAlive: false,
    },
  },
  {
    path: '/404',
    component: () => import('@/views/404/404V2.vue'),
    meta: {
      title: '404',
      keepAlive: false,
    },
  },
]
